var routes = [
  {
    path: '/index',
    name: 'index',
    component: () => import('../views/Index.vue'),
    children:[
      {
        path: '/index/shou',
        name: 'shou',
        component: () => import('../views/Shou.vue')
      },
      {
        path: '/index/baobao',
        name: 'baobao',
        component: () => import('../views/Baobaotuan.vue')
      },
      {
        path: '/index/dingdan',
        name: 'dingdan',
        component: () => import('../views/Dingdan.vue')
      },
      {
        path: '/index/wude',
        name: 'wude',
        component: () => import('../views/Wude.vue')
      },
      {
        path: '/index',
        redirect: '/index/shou'
      },
      {
        path:'/index/:error(.*)',
        component: () => import('../views/AboutView.vue')
      }
    ]
  },
  {
    path: '/xiangqing/:id',
    name: 'xiangqing',
    component: () => import('../views/Xiangqing.vue')
  },
  {
    path:'/',
    redirect:'/index'
  },
  {
    path:'/:error(.*)',
    component:()=>import('../views/AboutView.vue')
  }
]

export default routes;